package cn.tedu.esspringboot.es;

import cn.tedu.esspringboot.entity.Student;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface StudentRepository extends ElasticsearchRepository<Student,Long> {

    List<Student> findByName(String name);

    List<Student> findByNameOrBirthDate(String name,String birthdat);

}
